import { request } from '@/utils/request.js'

export const getBannerListApi = () => {
	return request({
		url: '/homeBanner'
	})
}

export const getNoticeListApi = (data = {}) => {
	return request({
		url: '/wallNewsList',
		data
	})
}

export const getRandomListApi = () => {
	return request({
		url: '/randomWall'
	})
}

// 分类
export const getClassifyApi = (data = {}) => {
	return request({
		url: '/classify',
		data
	})
}

// 单个分类集合
export const getClassListApi = (data = {}) => {
	return request({
		url: '/wallList',
		data
	})
}

// 评分
export const setupScoreApi = (data = {}) => {
	return request({
		url: '/setupScore',
		data
	})
}

export const writeDownloadWallApi = (data = {}) => {
	return request({
		url: '/downloadWall',
		data
	})
}

// 单个壁纸详情
export const detailWallApi = (data = {}) => {
	return request({
		url: '/detailWall',
		data
	})
}

// 用户信息
export const userInfoApi = () => {
	return request({
		url: '/userInfo'
	})
}

// 历史下载或评分记录
export const userWallListApi = (data = {}) => {
	return request({
		url: '/userWallList',
		data
	})
}

// 资讯公告详情
export const wallNewsDetailApi = (data = {}) => {
	return request({
		url: '/wallNewsDetail',
		data
	})
}

// 搜索壁纸
export const searchWallApi = (data = {}) => {
	return request({
		url: '/searchWall',
		data
	})
}